package com.cai.file.demo;

import java.io.File;

public class DeleteFileDemo {
    public static void main(String[] args) {
        File file=new File("demo.txt");
        boolean success =  file.delete();
        System.out.println("文件是否删除成功："+success);
    }
}
